import request from '@/utils/request'

export function getInventoryList(id){
  return request({
    url: `/wms/inventory-plan/getInventoryList/${id}`,
    method: 'get',
  })
}
export function start(id){
  return request({
    url: `/wms/inventory-plan/start/${id}`,
    method: 'get',
  })
}
export function end(id){
  return request({
    url: `/wms/inventory-plan/finish/${id}`,
    method: 'get',
  })
}
export function save(data){
  return request({
    url: `/wms/inventory-plan/save`,
    method: 'post',
    data
  })
}
export function detail(id){
  return request({
    url:`/wms/inventory-plan/detail/${id}`,
    method: 'get',
    
  })
}
export function diff(id){
  return request({
    url:`/wms/inventory-plan/diff/${id}`,
    method: 'get',
    
  })
}
export function inventory(data){
  return request({
    url:`/wms/stock/inventory`,
    method: 'post',
    data
  })
}
export function getStoreList(){
  return request({
    url:`/wms/base/store/location/getStoreList`,
    method: 'get',
    
  })
}
export function deleteDetail(id){
  return request({
    url:`/wms/inventory-plan/deleteDetail/${id}`,
    method: 'get',
    
  })
}
